// 服务器入口
const Koa = require('koa');
const app = new Koa();
const duration = require('./middleware/koa_response_duration');
app.use(duration);
const setHead = require('./middleware/koa_response_header');
app.use(setHead);
const getData = require('./middleware/koa_response_data');
app.use(getData);
app.listen(8888);